package com.bbkb.user.remoting.impl;

import com.bbkb.user.dto.SysMenuDTO;
import com.bbkb.user.remoting.ISysMenuRemoting;
import com.bbkb.user.service.ISysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 功能：
 * 作者：沈飞超
 * 时间：2020年10月09日 15:01
 **/
@Service("sysMenuRemoting")
public class SysMenuRemotingImpl implements ISysMenuRemoting {

    @Autowired
    private ISysMenuService sysMenuService;

    @Override
    public List<SysMenuDTO> getSysMenusByUserId(Long userId) {
        return sysMenuService.getSysMenusByUserId(userId);
    }

    @Override
    public List<SysMenuDTO> getAllSysMenus() {
        return sysMenuService.getAllSysMenus();
    }

    @Override
    public List<SysMenuDTO> getMenuByRoleId(Long roleId) {
        return sysMenuService.getMenuByRoleId(roleId);
    }

}
